package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.InvContentDetailBean;
import com.esun.payment_api.domain.InvFormContent;
import com.esun.payment_api.domain.InvFormContentExample;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface InvFormContentMapper {
    long countByExample(InvFormContentExample example);

    int deleteByExample(InvFormContentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(InvFormContent record);

    int insertSelective(InvFormContent record);

    List<InvFormContent> selectByExample(InvFormContentExample example);

    InvFormContent selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") InvFormContent record, @Param("example") InvFormContentExample example);

    int updateByExample(@Param("record") InvFormContent record, @Param("example") InvFormContentExample example);

    int updateByPrimaryKeySelective(InvFormContent record);

    int updateByPrimaryKey(InvFormContent record);

    int deleteById(BigDecimal id);

    InvContentDetailBean getById(@Param("id") BigDecimal id);

    String sumMoneyByInvId(Integer invId);
}